<!-- 底部导航上面钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
    <div class="plugins-tag">
        <span>plugins_view_common_footer_top</span>
    </div>
{{/if}}
{{if !empty($plugins_view_common_footer_top_data) and is_array($plugins_view_common_footer_top_data)}}
    {{foreach $plugins_view_common_footer_top_data as $hook}}
        {{if is_string($hook) or is_int($hook)}}
            {{$hook|raw}}
        {{/if}}
    {{/foreach}}
{{/if}}

<style>
	.am-footer-default{
		border-top: 0;
	}
	.footer-box{
		width: 79%;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 20px;
		border-bottom: 0.2rem solid #333;
	}
	.yhk{
		display: flex;
		align-items: center;
	}
</style>
<!-- 底部内容及页脚 -->
{{if MyC('home_main_footer_content_status', 1) eq 1 and (!IsMobile() or (IsMobile() and MyC('common_is_mobile_concise_model') neq 1))}}
	<!-- 底部导航 -->
	<footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{}">
		{{if !empty($nav_footer)}}
		<div class="plugins-footercustomerservice-customer-service">
			<div class="footer-box">
				<div>
					<img style="width: 90px;height: 85px;" src="{{:AttachmentPathViewHandle(MyC('home_site_logo'))}}" alt="">
				</div>
				<div class="yhk">
					<img style="width: 80px;" src="{{:staticAttachmentUrl('gwc.png')}}" alt="">
					<div style="margin-left: 20px;">
						<div>
							劈價場派送貨品
						</div>
						<div>
							買滿指定金額免運費>>
						</div>
					</div>
				</div>
				<div class="yhk">
					<img style="width: 80px;" src="{{:staticAttachmentUrl('yhk.png')}}" alt="">
					<div style="margin-left: 20px;">
						<div>
							劈價場信用卡
						</div>
						<div>
							逢星期四專享95折>>
						</div>
					</div>
				</div>
			</div>
		</div>
		{{/if}}
		<div class="am-container footer-nav-content">
			<!-- 底部导航 -->
			{{if !empty($nav_footer)}}
				<ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-4 am-avg-lg-4 am-gallery-overlay am-no-layout am-u-md-8 am-u-lg-9 footer-nav-list theme-data-edit-event" data-module="navigation_footer" data-am-gallery="{}">
					{{foreach $nav_footer as $k=>$v}}
						{{if $k lt 4}}
							<li>
								<div class="am-gallery-item">
									<p class="footer-nav-title am-text-truncate">{{$v.name}}</p>
									{{if !empty($v['items'])}}
										{{foreach $v.items as $vs}}
											<p class="am-text-truncate">
												<a href="{{$vs.url}}" {{if $vs['is_new_window_open'] eq 1}}target="_blank"{{/if}}>{{$vs.name}}</a>
											</p>
										{{/foreach}}
									{{/if}}
								</div>
							</li>
						{{/if}}
					{{/foreach}}
				</ul>
			{{/if}}

			<!-- 商店信息 -->
			<ul class="footer-about am-u-md-4 am-u-lg-3 theme-data-edit-event" data-module="store_config">
				{{if !empty($common_customer_store_tel)}}
					<li class="tel">
						<i class="iconfont icon-footer-tel am-vertical-align-middle"></i>
						<a href="tel:{{$common_customer_store_tel}}">{{$common_customer_store_tel}}</a>
					</li>
				{{/if}}
				{{if !empty($common_customer_store_address)}}
					<li class="address">
						<i class="iconfont icon-footer-address am-vertical-align-middle"></i>
						<span>{{$common_customer_store_address}}</span>
					</li>
				{{/if}}
				{{if !empty($common_customer_store_describe)}}
					<li class="describe">
						<i class="iconfont icon-footer-describe am-vertical-align-middle"></i>
						<span>{{$common_customer_store_describe}}</span>
					</li>
				{{/if}}
				{{if !empty($common_customer_store_email)}}
					<li class="email">
						<i class="iconfont icon-footer-email am-vertical-align-middle"></i>
						<span>{{$common_customer_store_email}}</span>
					</li>
				{{/if}}
				{{if !empty($common_customer_store_qrcode)}}
					<li class="qrcode">
						<img style="width:100%" src="{{$common_customer_store_qrcode}}" alt="{{:MyC('home_seo_site_title')}}" />
					</li>
				{{/if}}
			</ul>
		</div>

		<!-- 页脚 -->
		<div class="am-footer-miscs">
			<div class="am-container">
				<!-- 友情链接 -->
				{{if !empty($link_list)}}
					<div class="friendship-list theme-data-edit-event" data-module="link_list">
						<ul class="am-cf am-margin-bottom-sm">
							<li class="am-fl am-text-center title">友情链接</li>
							{{foreach $link_list as $v}}
								<li class="am-fl am-text-center">
									<a href="{{$v.url}}" {{if $v['is_new_window_open'] eq 1}} target="_blank"{{/if}}>{{$v.name}}</a>
								</li>
							{{/foreach}}
						</ul>
					</div>
				{{/if}}

				<!-- 页脚信息 -->
				{{:ModuleInclude('public/footer_filing')}}
			</div>
		</div>
	</footer>
{{else /}}
	<!-- 页脚 -->
	<footer class="am-footer am-footer am-footer-default footer-base-content">
		<div class="am-footer-miscs">
			<!-- 页脚信息 -->
			{{:ModuleInclude('public/footer_filing')}}
		</div>
	</footer>
{{/if}}